package com.jpm.jrogue.maps
{
	import com.jpm.jrogue.graphics.Tile;
	
	/**
	 * ...
	 * @author Jonboy
	 */
	public class Map
	{
		public var height:int;
		public var width:int;
		public var map:Vector.<Vector.<Tile>>;
		
		public function Map()
		{
		}
		
		protected function create():void
		{
			map = new Vector.<Vector.<Tile>>(width);
			
			for (var xPos:int = 0; xPos < width; xPos++)
			{
				for (var yPos:int = 0; yPos < height; yPos++)
				{
					
					if (!map[xPos])
					{
						map[xPos] = new Vector.<Tile>(height);
					}
					map[xPos][yPos] = new Tile(xPos, yPos);
				}
			}
		
		}
	}

}